﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<WROA.Models.ViewModels.NewFlowView>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>初始新建流程</title>
    <link href="../../Content/Global.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="all">



<!--标题开始-->
<div id="titleOut">
    <div id="titleInner">
        新建流程
    </div>
</div>
<!--标题结束-->



<form id="Form" action="/Flow/NewFlow" method="post" runat="server">
<!--申请内容开始-->
<div id="ContentOut">
    <table id="ContentInner" class="tableInner" cellpadding="0" cellspacing="0">
        <tr class="head">
            <td>流程名称</td>
            <td><input id="FlowName" name="FlowName" value="<%= Model.flow.Fl_name??"" %>" type="text" /></td>
        </tr>
        <tr>
            <td>流程要述</td>
            <td><textarea id="FlowRemark" name="FlowRemark"><%= Model.flow.Fl_remark??"" %></textarea></td>
        </tr>
        <tr>
            <td>流程类型</td>
            <td>
             <%--   <%= Html.DropDownList("FlowType", Model.flowTypeList, Model.flow.Flowtype.Ft_name??"请选择...") %>--%>
                <%= Html.DropDownList("FlowType", Model.flowTypeList, Model.flow.Flowtype == null ? "" : Model.flow.Flowtype.Ft_name) %>
            </td>
        </tr>
        <tr>
            <td>选择表单</td>
            <td>
                <%=Html.DropDownList("FormName", Model.FormNameList, Model.flow.Form == null ? "" : Model.flow.Form.Fo_name)%>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    var MaterialInner = document.getElementById("ContentInner");
    var trs = MaterialInner.getElementsByTagName("tr");

    for (var i = 1; i < trs.length; i++) {
        if (i % 2 != 0) {
            trs[i].className = "a1";
        } else {
            trs[i].className = "a2";
        }
    }
</script>
<!--申请内容结束-->




<!--操作开始-->
<div id="dealOutBottom" class="dealOut">
    <div id="dealInnerBottom" class="dealInner">
        <input id="btnNext" type="submit" value="下一步" onclick="javascript:location.href='FlowProcedure';" />
        <input id="btnCancel" type="button" value="取消设计" onclick="javascript:history.back();" />
    </div>
</div>
<script type="text/javascript">
    function NextStep() {
        var FlowName = document.getElementById("FlowName");
        var FlowRemark = document.getElementById("FlowRemark");
        var FlowType = document.getElementById("FlowType");
        var FormName = document.getElementById("FormName");

    }
</script>
<!--操作结束-->
</form>

</div>
</body>
</html>